package com.example.liuxing.jdmall.utils;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

import com.example.liuxing.jdmall.activity.BaseActivity;

/**
 * Created by liuxing on 2017/7/13.
 */

public class ActivityUtils { // 跳转

    public static void start(Context context, Class clazz) {
        Intent intent = new Intent(context, clazz);
        context.startActivity(intent);
        ((Activity)context).finish();
    }
}
